how to implement global error handling

visit shbcf.ru